package vip.liux.contracts.models.pay;


import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 会员钱包 DO
 *
 * @author jason
 */
@Getter
@Setter
@Entity
@Table(name = "pay_wallet")
@Accessors(chain = true)
public class PayWallet extends vip.liux.domain.entities.Entity<Long> {

    /**
     * 用户编号
     */
    private String uid;

    /**
     * 余额，单位元
     */
    private BigDecimal balance;

    /**
     * 冻结金额，单位元
     */
    private BigDecimal freezePrice;

    /**
     * 累计支出，单位元
     */
    private BigDecimal totalExpense;

    /**
     * 累计充值，单位元
     */
    private BigDecimal totalRecharge;
}
